package com.nbsaas.boot.site.data.entity;

import com.nbsaas.boot.code.annotation.FormAnnotation;
import com.nbsaas.boot.code.annotation.FormField;
import com.nbsaas.boot.code.annotation.InputType;
import com.nbsaas.boot.code.annotation.SearchItem;
import com.nbsaas.boot.jpa.data.entity.AbstractEntity;
import lombok.Data;
import org.hibernate.annotations.Comment;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;


@FormAnnotation(title = "需求反馈", menu = "1,57,71")
@Data
@Entity
@Table(name = "bs_feed_back")
@org.hibernate.annotations.Table(appliesTo = "bs_feed_back", comment = "需求反馈")
public class FeedBack extends AbstractEntity {

    @SearchItem(label = "联系人", key = "name", name = "name")
    @Comment("联系人")
    @FormField(title = "联系人", sortNum = "1", grid = true, required = true, col = 22)
    private String name;

    @SearchItem(label = "电话", key = "phone", name = "phone")
    @FormField(title = "电话", sortNum = "2", grid = true, width = "180", required = true, col = 22)
    @Comment("电话")
    private String phone;

    @SearchItem(label = "电子邮箱", key = "email", name = "email")
    @FormField(title = "电子邮箱", sortNum = "2", grid = true, width = "180", required = true, col = 22)
    @Comment("电子邮箱")
    private String email;

    @Comment("公司名称")
    private String companyName;

    @Comment("省份名称")
    private String provinceName;

    @Comment("城市名称")
    private String cityName;


    @Comment("反馈内容")
    @FormField(title = "反馈内容", sortNum = "4", type = InputType.richText, col = 22)
    private String note;
}
